package com.chenfan.ccp.plug.hot;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.ConfigurableApplicationContext;

public class ClassHotApplicationListener
        implements ApplicationContextAware {


    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        ClassHotLoader.getInstance().addApplicationContext((ConfigurableApplicationContext) applicationContext);

    }
}
